package com.jiang.lianxi;

import java.util.Scanner;

public class ZuiDaZhi {
    public static void main(String[] args) {
        //用三元运算符输出最大值
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int i = sc.nextInt();
        System.out.println("请输入第二个数字");
        int j = sc.nextInt();
        int max = i > j ? i : j;
        System.out.println("最大值为：");
        System.out.println(max);
    }
}
